const utils = require('./src/utils')
const id = 'sBUdt9qVXfjGoXBGrQaMtcmxRliT7NkJ7HOoJdSX4wVXU0+Qsh1v5O888br9BnyV'
const key = 'n8RbQ0zLMTzWOcAFLQcTqtiLz0O6zCqS7NHPctzJdSo='
const key1 = 'qwsa123235156978751f621ea5c8f930';
const id1 = '2624750004598718';
module.exports = {
  "title": "小高云笔记",
  "description": "没有一种坚持会被辜负",
  "dest": "./dist",
  "head": [
    ["link", { "rel": "icon", "href": "/logo.png" }],
    ["meta", { "name": "viewport", "content": "width=device-width,initial-scale=1,user-scalable=no" }]
  ],
  locales: {
    '/': {
      lang: 'zh-CN',
      title: '小高云笔记',
      description: '没有一种坚持会被辜负',
    }
  },
  "theme": "reco",
  "themeConfig": {
    "nav": [
      {
        "text": "首页",
        "link": "/",
        "icon": "reco-home"
      },
      {
        text: '实用网站',
        icon: 'reco-api',
        items: [
          {
            text: '【截图】',
            items: [
              { text: 'snipaste', link: 'https://www.snipaste.com/' },
            ]
          },
          {
            text: '【新媒体】',
            items: [
              { text: '考拉', link: 'https://www.kaolamedia.com/' },

            ]
          },
          {
            text: '【开发】',
            items: [
              { text: 'vrg123', link: 'http://vrg123.com/' },
              { text: 'github', link: 'https://github.com/' },
            ]
          },

        ]
      },
      {
        text: '心情本',
        link: '/diary/',
        icon: 'reco-message'
      },
      {
        text: '时间轴',
        link: '/timeline/',
        icon: 'reco-date'
      }
    ],
    "type": "blog",
    "blogConfig": {
      "category": {
        "location": 2,
        "text": "分类"
      },
      "tag": {
        "location": 3,
        "text": "标签"
      }
    },
    "logo": "/logo.png",
    "search": true,
    "searchMaxSuggestions": 10,
    "lastUpdated": "上次更新",
    docsRepo: 'https://gitee.com/topfive/topfive',
    docsBranch: 'master',
    docsDir: 'docs',
    editLinkPattern: ':repo/tree/:branch/:path',
    valineConfig: {
      appId: utils.decrypt(key1, id1, id),
      appKey: utils.decrypt(key1, id1, key),
    },
    //在所有页面中启用自动生成子侧边栏，原 sidebar 仍然兼容
    subSidebar: 'auto',
    //所有页面自动生成侧边栏
    sidebar: "auto",
    // 备案
    // record: 'ICP 备案文案',
    // recordLink: 'ICP 备案指向链接',
    // cyberSecurityRecord: '公安部备案文案',
    // cyberSecurityLink: '公安部备案指向链接',
    // 项目开始时间，只填写年份
    author: '小高',
    authorAvatar: '/avatar.jpg',
    startYear: '2022',
  },
  plugins: {
    '@vuepress/last-updated': {
      transformer: (timestamp, lang) => {
        return utils.formatTime(new Date(timestamp))
      }
    },
    //一键复制代码插件: "vuepress-plugin-code-copy"
    "vuepress-plugin-code-copy": true,
    // 阅读进度条: "vuepress-plugin-reading-progress"
    "vuepress-plugin-reading-progress": true,
    // bgm插件:
    /**
    "@vuepress-reco/vuepress-plugin-bgm-player": {
      audios: [
        {
          name: "一路向北",
          artist: "周杰伦",
          url:
            "/bgm/一路向北.mp3",
          cover:
            "https://p3fx.kgimg.com/stdmusic/240/20160907/20160907190357712844.jpg",
        }
      ],
    },
    */
    // 看板娘插件
    /**
    "@vuepress-reco/vuepress-plugin-kan-ban-niang":
    {
      theme: ['blackCat', 'whiteCat', 'haru1', 'haru2', 'haruto', 'koharu', 'izumi', 'shizuku', 'wanko', 'miku', 'z16'],
      clean: false,
      messages: {
        welcome: `欢迎来到小高云笔记`,
        home: '我愿化身石桥，受那五百年风吹日晒，只求你从桥上经过。',
        theme: '好吧，希望你能喜欢我的其他小伙伴。',
        close: '再见啦~~~'
      },
      width: 150,
      height: 219,
    },
     */
  },
  "markdown": {
    "lineNumbers": true
  }
}